package com.laowang.project.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 商品分类对象 my_goods_cat
 *
 * @author laowang
 * @date 2023-07-20
 */
@NoArgsConstructor
@Data
public class MyGoodsCat implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * 分类名称
     */
    @Excel(name = "分类名称")
    @ApiModelProperty(value = "分类名称", required = false)
    private String name;

    /**
     * 分类排序 越小越靠前
     */
    @Excel(name = "分类排序 越小越靠前")
    @ApiModelProperty(value = "分类排序 越小越靠前", required = false)
    private Integer sort;

    /**
     * 1=显示 2=不显示
     */
    @Excel(name = "1=显示 2=不显示")
    @ApiModelProperty(value = "1=显示 2=不显示", required = false)
    private Integer status;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间", required = false)
    private Date utime;


}
